using Machine.Specifications;

namespace Unbound.Tests.Unbinding.Specifications.SimpleTypes
{
	[Subject("Unbinding")]
	public class simple : unbinding<int>
	{
		Behaves_like<behavior> an_unbinder;

		Establish context = () =>
		                    	{
		                    		Request = 42;
		                    		Prefix = "foo";
		                    	};

		[Behaviors]
		protected class behavior : behavior<int>
		{
			It should_bind_type = () => Bound.ShouldBeOfType<int>();
			It should_bind_value = () => Bound.ShouldEqual(42);
		}
	}
}